{% load hash_filters %}
{% load comp_filters %}
{% if ROOT %}
    <div class='section-container wide'>
{% endif %}
      <div id='roster' class='section'>
        <div class='title'>
          <h3>Roster</h3>
          <div class='menu'>
          </div>
        </div>
        <div class='info-block'>
          <div>
          <table cellspacing="6">
            <tr><th>Monday</th></tr>
            {% for item in COMP|hash:"ITEMS"|hash:"roster" %}
              {{COMP|hash:"RENDER"|xslt:item|date:"Monday"|safe}}
            {% endfor %}
          </table>
          <table cellspacing="6">
            <tr><th>Tuesday</th></tr>
            {% for item in COMP|hash:"ITEMS"|hash:"roster" %}
              {{COMP|hash:"RENDER"|xslt:item|date:"Tuesday"|safe}}
            {% endfor %}
          </table>
          <table cellspacing="6">
            <tr><th>Wednesday</th></tr>
            {% for item in COMP|hash:"ITEMS"|hash:"roster" %}
              {{COMP|hash:"RENDER"|xslt:item|date:"Wednesday"|safe}}
            {% endfor %}
          </table>
          <table cellspacing="6">
            <tr><th>Thursday</th></tr>
            {% for item in COMP|hash:"ITEMS"|hash:"roster" %}
              {{COMP|hash:"RENDER"|xslt:item|date:"Thursday"|safe}}
            {% endfor %}
          </table>
          <p style="clear:both;"></p>
          </div>
          <div>
          <table cellspacing="6">
            <tr><th>Friday</th></tr>
            {% for item in COMP|hash:"ITEMS"|hash:"roster" %}
              {{COMP|hash:"RENDER"|xslt:item|date:"Friday"|safe}}
            {% endfor %}
          </table>
          <table cellspacing="6">
            <tr><th>Saturday</th></tr>
            {% for item in COMP|hash:"ITEMS"|hash:"roster" %}
              {{COMP|hash:"RENDER"|xslt:item|date:"Saturday"|safe}}
            {% endfor %}
          </table>
          <table cellspacing="6">
            <tr><th>Sunday</th></tr>
            {% for item in COMP|hash:"ITEMS"|hash:"roster" %}
              {{COMP|hash:"RENDER"|xslt:item|date:"Sunday"|safe}}
            {% endfor %}
          </table>
          </div>
          <p style="clear:both;"></p>
        </div>
      </div>
{% if HAS_AUTHORITY %}
      <div class='tail'>
        <a href="/glue/data/{{SERVICE.name}}/roster/">modify</a>
      </div>
{% endif %}
{% if ROOT %}
    <div style="clear:both"></div>
    </div>
{% endif %}

